﻿using Microsoft.Services.Clab.UI.Mvvmc;

namespace Mari.SmartHotel.Core
{
    public abstract class SHControllerBase : CodeControllerBase
    {
        protected Data.SmartHotelModelContainer Container;

        protected override void OnInitialized()
        {
            Container = new Data.SmartHotelModelContainer();
            Container.ContextOptions.LazyLoadingEnabled = true;
        }

        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (disposing)
            {
                Container.Dispose();
            }
        }
    }
}
